package com.base.component.alibaba.aliyun.sls;


import com.aliyun.openservices.log.common.auth.CredentialsProvider;


public interface CredentialsProviderBuilder {
    /**
     * getCredentialsProvider should return a new instance of {@link CredentialsProvider}
     * for each call.
     *
     * @return the returned {@link CredentialsProvider} must be thread-safe,
     * and cache credentials to avoid update credentials too frequently.
     *
     * @throws Exception if fail to create new CredentialsProvider instance
     */
    CredentialsProvider getCredentialsProvider() throws Exception;
}
